#include <REGX52.H>
#include "MatrixKey.h"
#include "daley.h"
#include "LCD1602.H"

unsigned char shiliu[] = {0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10};
void main()
{		
	LCD_Init();

	while(1)
	{
		unsigned int keynum = MatriKey();
		if(keynum)
		{
			LCD_ShowNum(1, 1, keynum, 4);
//			P2 = ~shiliu[keynum - 1];
		}
	}
}